package com.example.sys.module.dao;

import com.example.core.dao.BaseDao;
import com.example.sys.module.po.SysModule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SysModuleDao extends BaseDao<SysModule> {

    @Select("select * from sys_module where service = #{service}")
    public SysModule getModuleByService(@Param("service") String service);

    @Select("select * from sys_module where dao = #{dao}")
    public SysModule getModuleByDao(@Param("dao") String dao);

    @Select("select * from sys_module where po = #{po}")
    public SysModule getModuleByPo(@Param("po") String po);
}
